<div class="span4">
    <h3>gerente de páginas</h3>
    <ul class="nav nav-pills nav-stacked">
        <?
        foreach($Pages as $Page)
        {
        ?>
            <li class="<?if(isset($this->params['pass'][0]))echo($this->params['pass'][0]==$Page['Page']['id']?'active':'');?>">
                <? echo $this->Html->link($Page['Page']['title'], array('controller' => 'pages', 'action' => 'edit',$Page['Page']['id']), array('class' => 'button')); ?>
            </li>
        <?}
        ?>
    </ul>


    <ul class="nav nav-pills nav-stacked">
        <li class="nav-header">Ações</li>
        <li><? echo $this->Html->link('<i class="icon-pencil"></i>Adicionar novo', array('controller' => 'pages', 'action' => 'add'), array('class' => 'button', 'escape'=>false)); ?></li>
    </ul>
</div>